<?php //variation
    //$link = mysql_connect('localhost', 'ocmanozc_user1', '+0Fg8.8S-?pc');
    $link = mysql_connect('localhost', 'root', '');
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    }
    $query = "select * from projects order by id asc";
    
    mysql_select_db("ocmanozc_manager");
    $result = mysql_query($query);
    $rows = array();
    while($r = mysql_fetch_assoc($result)) {
        $rows[] = $r;
    }
    print json_encode($rows);
   
    
    mysql_close($link);
?>
<body>
<?php 

?>
</body>